﻿@using WaterRegimenMonitor.Common
@using WaterRegimenMonitor.Web.Models
@using WaterRegimenMonitor.Web.DataModel
@using WaterRegimenMonitor.Web.Domain
@using Telerik.Web.Mvc.UI
@{
    ViewBag.Title = WaterRegimenMonitor.Web.Properties.Resources.TITLE_COMPARISON;
    Layout = "~/Views/Shared/MainLayout.cshtml";

    //用于保存测站信息
    List<string> stationModels = new List<string>();

    //查询测站信息
    foreach (t_st item in StationHelper.GetOwnedStations())
    {
        //转换为字符串
        stationModels.Add(string.Format(@"{{ ID: '{0}', Name: '{1} {2}' }}", item.st_code.TrimEnd(), item.st_code.TrimEnd(), item.st_name.TrimEnd()));
    }
}
@section HeadCssLink
{
    <link href="@Url.Content("~/Content/Styles/ext-patch.css")" rel="stylesheet" type="text/css" />
}
@section HeadScriptLink
{
    <script src="@Url.Content("~/Scripts/ExtJS/locale/ext-lang-zh_CN.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/model.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Business/Comparison/Index.js")" type="text/javascript"></script>
    <script type="text/javascript">
        //用于保存测站信息
        var master_station =
        [
            @Html.Raw(System.String.Join(",", stationModels))
        ];

        //用于单位类型存储
        var store_master_station = null;
    </script>
}
<h2>
    @ViewBag.Title
</h2>
<br />
<div id="data-grid" class="div-grid-box">
</div>
